home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Delphi Magazine Collection 2001
/
Delphi Magazine Collection 20001 (2001).iso
/
DISKS
/
ISSUE03
/
INTERNAL
/
C.C
next >
Wrap
Text File
|
1995-06-09
|
692b
|
29 lines
#include <windows.h>
#ifdef __cplusplus
extern "C" {
#endif
void WINAPI DateSelSetCaption (LPCSTR lpCaption);
void WINAPI DateSelSetHelpInfo (LPCSTR HelpFile, DWORD HelpContext);
BOOL WINAPI DateSelDialog (LPINT TheDate);
#ifdef __cplusplus
}
#endif
int i;
char buff [128];
int PASCAL WinMain (HINSTANCE hInst, HINSTANCE hPrev,
LPSTR lpCmdLine, int nCmdShow)
{
// Let's have a custom Caption
DateSelSetCaption ("Calling Delphi from Vanilla C");
lstrcpy (buff, "You made no choice");
if (DateSelDialog (&i)) wvsprintf (buff, "You chose %d !", &i);
MessageBox (0, buff, "C Language Caller", MB_OK);
return (0);
}